<template>
  <div>
    <h1>v-for</h1>
    <ul>
      <li v-for="(item,index) in list" :key="index">
        <a href="#">{{item.title}}</a>
      </li>
    </ul>
    <p v-for="(value,poroNama) in obj" :key="poroNama">
      {{value}} {{poroNama}}
    </p>
  </div>
</template>

<script>
export default {
  data() {
    return {
      list:[{id:1,title:'新闻1'},{id:2,title:'新闻2'}],
      obj:{a:1,b:2}
    }
  },
}
</script>